<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{scVoteFriendGroupBean.id}"/>
		<f:event type="preRenderView" listener="#{scVoteFriendGroupBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Sc Vote Friend Group"/>

	<ui:define name="header">
		Sc Vote Friend Group
	</ui:define>

	<ui:define name="subheader">
		View existing Sc Vote Friend Group
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="scVoteFriendGroupBeanScVoteFriendGroupFriendGroupNo" value="Friend Group No:"/>
			<h:outputText id="scVoteFriendGroupBeanScVoteFriendGroupFriendGroupNo" value="#{scVoteFriendGroupBean.scVoteFriendGroup.friendGroupNo}"/>
			<h:outputText/>
			<h:outputLabel for="scVoteFriendGroupBeanScVoteFriendGroupSdCustUserAccount" value="Sd Cust User Account:"/>
			<h:link id="scVoteFriendGroupBeanScVoteFriendGroupSdCustUserAccount" outcome="/sdCustUserAccount/view" value="#{scVoteFriendGroupBean.scVoteFriendGroup.sdCustUserAccount}">
				<f:param name="id" value="#{scVoteFriendGroupBean.scVoteFriendGroup.sdCustUserAccount.custUserNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="scVoteFriendGroupBeanScVoteFriendGroupFriendGroupName" value="Friend Group Name:"/>
			<h:outputText id="scVoteFriendGroupBeanScVoteFriendGroupFriendGroupName" value="#{scVoteFriendGroupBean.scVoteFriendGroup.friendGroupName}"/>
			<h:outputText/>
			<h:outputLabel for="scVoteFriendGroupBeanScVoteFriendGroupFriendGroupStatusNo" value="Friend Group Status No:"/>
			<h:outputText id="scVoteFriendGroupBeanScVoteFriendGroupFriendGroupStatusNo" value="#{scVoteFriendGroupBean.scVoteFriendGroup.friendGroupStatusNo}"/>
			<h:outputText/>
			<h:outputLabel for="scVoteFriendGroupBeanScVoteFriendGroupFriendGroupCreatedDtm" value="Friend Group Created Dtm:"/>
			<h:outputText id="scVoteFriendGroupBeanScVoteFriendGroupFriendGroupCreatedDtm" value="#{scVoteFriendGroupBean.scVoteFriendGroup.friendGroupCreatedDtm}">
				<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="scVoteFriendGroupBeanScVoteFriendGroupScVoteFriendGroupMembers" value="Sc Vote Friend Group Members:"/>
			<h:dataTable id="scVoteFriendGroupBeanScVoteFriendGroupScVoteFriendGroupMembers" styleClass="data-table" value="#{forgeview:asList(scVoteFriendGroupBean.scVoteFriendGroup.scVoteFriendGroupMembers)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Friend Group Member Status No"/>
					</f:facet>
					<h:link outcome="/scVoteFriendGroupMember/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemFriendGroupMemberStatusNo" value="#{_item.friendGroupMemberStatusNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>